package com.example.controller;

import com.example.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private ITestService testService;

    @RequestMapping("test")
    public String test(String str) {
        System.out.println("str=" + str);
        return testService.test(str);
    }

}
